package com.feib.stms.model;

import java.util.Date;

/**
 * 紀錄對檔案操作動作 
 * @author Jeff Gu
 *
 */
public class UploadFileActionLog extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5920195554693643416L;



	/**
	 *  1上傳   
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_UPLOAD = "1";


	/**
	 * 2審查
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_CHECK= "2";


	/**
	 * 已刪除/審查不通過(只要有一人審查不通過，即為審查不通過；明細應註記為刪除)
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_CHECK_DELETE= "3";

	
	
	/**
	 * 4 放行
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_CONFIRM= "4";

	
	/**
	 * 5.已刪除/不放行(只要有一人不放行，即為放行不通過；明細應註記為刪除)
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_CONFIRM_DELETE= "5";
	
	
	
	/**
	 * 6.轉交割
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_CHANGE= "6";
	
	
	/**
	 * 7.取消
	 */
	public static final String UPLOAD_FILE_ACTION_LOG_CANCEL= "7";
	

	/**
	 * PK 	UPLOAD_FILE_ACTION_LOG_PK 	
	 */
	private   Long uploadFileActionLogPk;

	/**
	 * PFK 	USER_PK 		Number (10,5) 	YES 	NO 	
	 * 
	 */
	private User user;	

	/**
	 * UPLOAD_FILE_PK 
	 * 
	 */
	private UploadFile uploadFile;

	/**
	 *ACTION_TIME 		Date 	YES 	NO 			記錄時間  
	 */
	private Date actionTime;

	/**
	 * ACTION 		Varchar2 (30) 	NO 	NO 			1上傳 2覆核 3放行 4刪除 5取消
	 */
	private String action;

	/**
	 * 畫面顯示用 action中文名稱
	 */
	private String actionName;


	public void setUploadFileActionLogPk(Long uploadFileActionLogPk) {
		this.uploadFileActionLogPk = uploadFileActionLogPk;
	}

	public Long getUploadFileActionLogPk() {
		return uploadFileActionLogPk;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getUser() {
		return user;
	}

	public void setUploadFile(UploadFile uploadFile) {
		this.uploadFile = uploadFile;
	}

	public UploadFile getUploadFile() {
		return uploadFile;
	}

	public void setActionTime(Date actionTime) {
		this.actionTime = actionTime;
	}

	public Date getActionTime() {
		return actionTime;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getAction() {
		return action;
	}

	/**
	 * @param actionName 的設定的 actionName
	 */
	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	/**
	 * @return actionName
	 */
	public String getActionName() {
		return actionName;
	}

}
